<?php

namespace App\models;

use Illuminate\Database\Eloquent\Model;

class UserShopMoney extends Model
{
    protected $guarded = ['id'];
    protected $table   = 'user_shop_moneys';
    protected $appends = ['money_txt'];
    
    public function user()
    {
    	return $this->belongsTo(User::class);
    }
    

    public function shop()
    {
    	return $this->belongsTo(Shop::class);
    }    

    public function getMoneyTxtAttribute()
    {
        return $this->money/100;
    }

   
}
